package com.lihaogn.sell.web;

import com.lihaogn.sell.service.WelcomeService;
import com.lihaogn.sell.vo.IndexVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * fileName: WelcomeController
 * description: ...
 *
 * @author lihaogn-main
 * @version 1.0
 * @date 2019/12/20 10:05
 */
@Controller
public class WelcomeController {

    @Autowired
    private WelcomeService welcomeService;

    @RequestMapping(value = "/getData", method = RequestMethod.GET)
    @ResponseBody
    private IndexVo getData() {
        IndexVo welcomData = welcomeService.getWelcomData();
        return welcomData;
    }
}
